Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cake tools #2293

Merged
merged 2 commits into from
Oct 14, 2024
Merged

Update cake tools #2293

merged 2 commits into from
Oct 14, 2024

Conversation

martincostello
Copy link
Member

@martincostello martincostello commented Sep 17, 2024

  • Bump xunit.runner.console to 2.9.2.
  • Bump dotnet-stryker to 4.3.0.

@martincostello martincostello added CI/build dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code labels Sep 17, 2024
Copy link

codecov bot commented Sep 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.37%. Comparing base (468bf0c) to head (4bf6087).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2293      +/-   ##
==========================================
- Coverage   85.40%   85.37%   -0.03%     
==========================================
  Files         313      313              
  Lines        7467     7467              
  Branches     1126     1125       -1     
==========================================
- Hits         6377     6375       -2     
- Misses        745      746       +1     
- Partials      345      346       +1     
Flag Coverage Δ
linux 85.37% <100.00%> (ø)
macos 85.37% <100.00%> (ø)
windows 85.37% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@martincostello
Copy link
Member Author

Needs more mutants.

@@ -61,8 +61,7 @@ internal AddResiliencePipelineContext(ConfigureBuilderContext<TKey> registryCont
public TOptions GetOptions<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] TOptions>(string? name = null)
{
var monitor = ServiceProvider.GetRequiredService<IOptionsMonitor<TOptions>>();

return name == null ? monitor.CurrentValue : monitor.Get(name);
return monitor.Get(name);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Effectively duplicates the implementation the way it was.

- Bump xunit.runner.console to 2.9.2.
- Bump dotnet-stryker to 4.2.0.
- Remove redundant branch because when the key is null it uses the default key, which is what `CurrentValue` does anyway.
- Assert that the correct options instance is retrieved.
- Explicitly pass the configuration to stryker.
Update to 4.3.0 which hopefully fixes the issues observed.
@martincostello
Copy link
Member Author

@joelhulen Just noticed that mutations-core escaped being enabled as a required status check - could you add that one too please?

@martincostello martincostello marked this pull request as ready for review October 14, 2024 13:49
@martincostello martincostello merged commit cf14f4b into main Oct 14, 2024
19 of 20 checks passed
@martincostello martincostello deleted the bump-cake-tools branch October 14, 2024 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/build dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant